// clientDlg.h : header file
//

#if !defined(AFX_CLIENTDLG_H__8C35418A_8E46_4E8E_A181_8729E0E60402__INCLUDED_)
#define AFX_CLIENTDLG_H__8C35418A_8E46_4E8E_A181_8729E0E60402__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <WINSOCK2.H>
#include "SetIpPort.h"
#include "socketCMD.h"

/////////////////////////////////////////////////////////////////////////////
// CClientDlg dialog

class CClientDlg : public CDialog
{
// Construction
public:
	BOOL CreateSocket();
	CClientDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CClientDlg)
	enum { IDD = IDD_CLIENT_DIALOG };
	CButton	m_btnSpeedSub;
	CButton	m_btnSpeedAdd;
	CButton	m_btnRight;
	CButton	m_btnLeft;
	CButton	m_btnForward;
	CButton	m_btnDisConnect;
	CButton	m_btnConnect;
	CListBox	m_listbox_info;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CClientDlg)
	public:
	virtual BOOL DestroyWindow();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CClientDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnBtnConnect();
	afx_msg void OnBtnDisconnect();
	afx_msg void OnBtnSet();
	afx_msg void OnBtnForward();
	afx_msg void OnBtnLeft();
	afx_msg void OnBtnRight();
	afx_msg void OnBtnSpeedAdd();
	afx_msg void OnBtnSpeedSub();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	BOOL m_bSockConnected;
	BOOL m_bSockeIsCreated;
	SOCKET m_socketClient;
	SOCKADDR_IN m_socketAddr;

	IP_INFO m_ipInfo;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CLIENTDLG_H__8C35418A_8E46_4E8E_A181_8729E0E60402__INCLUDED_)
